package o;

import android.graphics.drawable.Drawable;
import android.widget.Spinner;
import androidx.appcompat.widget.AppCompatSpinner;
import androidx.appcompat.widget.ListPopupWindow;
import com.huawei.skinner.annotation.SkinAdapter;
import com.huawei.skinner.annotation.SkinMethod;
import com.huawei.skinner.annotation.SkinMethods;

@SkinMethods({@SkinMethod(attribute = "popupBackground", method = "setPopupBackgroundDrawable", type = Spinner.class)})
public class fts {
    @SkinAdapter("android:dropDownSelector")
    public static void ˊ(Spinner spinner, Drawable drawable) {
        Object ˎ;
        if (spinner instanceof AppCompatSpinner) {
            ˎ = fmt.ˎ(AppCompatSpinner.class, spinner, "mPopup");
            if (ˎ != null && (ˎ instanceof ListPopupWindow)) {
                ((ListPopupWindow) ˎ).ˋ(drawable);
                return;
            }
            return;
        }
        ˎ = fmt.ˎ(Spinner.class, spinner, "mPopup");
        if (ˎ != null && (ˎ instanceof android.widget.ListPopupWindow)) {
            ((android.widget.ListPopupWindow) ˎ).setListSelector(drawable);
        }
    }
}
